package cn.com.gdut.ppj.comtroller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping(value="/common")
public class CommonController {

	@RequestMapping("/index")
	public String index(HttpServletRequest request, Model model){
		return "user/login";
	}
	
	@RequestMapping("/login")
	public String login(HttpServletRequest request, Model model){
		System.out.println("validate fo login page");
		return "user/login";
	}
	
	@RequestMapping("/register")
	public String register(HttpServletRequest request, Model model){
		System.out.println("validate fo register page");
		return "user/register";
	}
	
	@RequestMapping("/createCompany01")
	public String create01(HttpServletRequest request, Model model){
		System.out.println("validate fo create company 01 page");
		return "hr/company/createCompany01";
	}
	@RequestMapping("/createCompany02")
	public String create02(HttpServletRequest request, Model model){
		System.out.println("validate fo create company 02 page");
		return "hr/company/createCompany02";
	}
	@RequestMapping("/createCompany03")
	public String create03(HttpServletRequest request, Model model){
		System.out.println("validate fo create company 03 page");
		return "hr/company/createCompany03";
	}
	@RequestMapping("/createCompany04")
	public String create04(HttpServletRequest request, Model model){
		System.out.println("validate fo create company 04 page");
		return "hr/company/createCompany04";
	}
	@RequestMapping("/createCompany05")
	public String create05(HttpServletRequest request, Model model){
		System.out.println("validate fo create company 05 page");
		return "hr/company/createCompany05";
	}
	@RequestMapping("/createCompany06")
	public String create06(HttpServletRequest request, Model model){
		System.out.println("validate fo create company 06 page");
		return "hr/company/createCompany06";
	}
	@RequestMapping("/createSuccess")
	public String createSuccess(HttpServletRequest request, Model model){
		System.out.println("validate fo create company success page");
		return "hr/company/success";
	}
	
	
	
}
